const webpack = require('webpack');

module.exports = {
  lintOnSave: false,
  productionSourceMap: false,
  publicPath: "./",
  devServer: {
    proxy: {
      '/': {
        target: 'http://www.shuianbao.net',
        changeOrigin: true,
        pathRewrite: {
          '/': ''
        },
        ws: false,

      }
    }
  },
  transpileDependencies: true,
  chainWebpack: (config) => {
    config.plugin('provide').use(new webpack.ProvidePlugin({
      'window.Quill': 'quill/dist/quill.js',
      Quill: 'quill/dist/quill.js'
    }));
  }
},
{
  "compilerOptions": {
    "baseUrl": './',
    "paths": {
      "@/*": [
        "src/*"
      ]
    }
  },
  "exclude": [
    "node_modules",
    "dist"
  ]
}
